import { mapState } from 'vuex';
import webUrl from "@/config/otherLink";
export default {
  data () {
    return {
      // url: process.env.NODE_ENV == 'pre' ? 'http://39.107.26.138:55006' : process.env.NODE_ENV == 'prod' ? 'https://attendance.yundaizhang.com.cn:55006' : process.env.NODE_ENV == 'newProd' ? 'https://attendance.zhangsanfeng.vip' : 'http://8.142.139.164:55006',
      url: webUrl.attendance, 
      random: '',
      loading: false
    };
  },
  computed: {
    ...mapState({
      uif: state => state.common.uif
    })
  },
  // 考勤管理  attendanceManage
  // 假期管理  Holiday

  // 个人考勤  index
  // 排班管理  scheduleManage
  // 统计分析 merge
  methods: {},
  mounted () {
    this.random = Math.random() * 100;
    this.loading = true;
    let than = this;
    window.addEventListener('message', function() { // 监听子页面想父页面的传参
      than.loading = false;
    });
  }
};
